From 96491f3ad56627c73b1838e2b2d6acb39bc26599 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Thu, 20 Oct 2005 11:27:51 +0100 Subject: [PATCH] smp_call_function() must be usable as an expression return an integer. Signed-off-by: Keir Fraser --- xen/include/xen/smp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/xen/smp.h b/xen/include/xen/smp.h index 959657d856..a99ea486f6 100644 --- a/xen/include/xen/smp.h +++ b/xen/include/xen/smp.h @@ -90,7 +90,7 @@ void smp_prepare_boot_cpu(void); #define smp_processor_id() 0 #endif #define hard_smp_processor_id() 0 -#define smp_call_function(func,info,retry,wait) do {} while (0) +#define smp_call_function(func,info,retry,wait) ({ do {} while (0); 0; }) #define on_each_cpu(func,info,retry,wait) ({ func(info); 0; }) #define num_booting_cpus() 1 #define smp_prepare_boot_cpu() do {} while (0) -- 2.30.2